//
//  CollectionHeaderView.swift
//  Beadhouse
//
//  Created by Apple on 2018/10/27.
//  Copyright © 2018年 wangdong. All rights reserved.
//

import UIKit
import SnapKit
class CollectionHeaderView: UICollectionReusableView {
    var cycleView = CycleView()
    var label = UILabel()
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = UIColor.red
        cycleView = CycleView(frame: CGRect(x: 0, y: 0, width: self.frame.size.width, height: self.frame.size.height))
        cycleView.mode = .scaleAspectFill
        cycleView.imageURLStringArr = ["1.png", "2.png", "3.png", "4.png"]
        self.addSubview(cycleView)
       
//        self.cycleView.snp.makeConstraints { (make) in
//            make.height.width.equalToSuperview()
//        }
        
       // self.view = UIView.init(frame: CGRect(x:0,y:0, width:self.frame.size.width, height:self.frame.size.height))
//        self.addSubview(view)
//        self.view.snp.makeConstraints { (make) in
//            make.height.width.equalToSuperview()
//        }
//
//        //self.label = UILabel.init(frame: CGRect(x:10, y: 0, width:200, height:self.frame.size.height))
//        self.view.addSubview(label)
//        self.label.textAlignment = NSTextAlignment.center
//        self.label.snp.makeConstraints { (make) in
//            make.width.equalToSuperview()
//            make.height.equalTo(40)
//            make.center.equalToSuperview()
//        }
        
        
    }
}
